// createStore: 生成store对象
// applyMiddleware: 使redux支持异步更行，需要配合 redux-thunk 使用
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';

import reducer from './reducer';

const store = createStore(reducer, applyMiddleware(thunk));

export default store;
